package org.brisling.supply.service.base;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.brisling.base.domain.inf.BaseTreeDomainInf;
import org.brisling.base.service.BaseTreeService;
import org.brisling.common.ConstSysParam;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 
 * 树结构业务基础service，所有树结构业务对象必须继承该service类
 * @author : jackson wang
 * @Date   : 2015年6月8日 下午8:17:42
 * @version: 1.0
 */
public class BaseSupplyTreeService<T extends BaseTreeDomainInf> extends BaseTreeService<T>{	
	
	@PersistenceContext(unitName=ConstSysParam.SUBSYSTEM_SYSMAN)
	@Autowired
	protected void setEntityManager(EntityManager entityManager){
		this.entityManager = entityManager;
		this.subSystem = ConstSysParam.SUBSYSTEM_SUPPLY;
	}
	
}
